//
//  ChildVC.swift
//  BitTest
//
//  Created by KuaiKuai on 2023/8/9.
//

import UIKit
import KnobControl
class ChildVC: ParentVC {
    
    override class var name: String {
        get {
            return "Btype"
        }
    }

    override func viewDidLoad() {
        super.viewDidLoad()
    }
    override class func makeInstance() -> ParentVC {
        return ChildVC()
    }
}
extension ChildVC {
    
    func changeBackground() -> Self {
        self.view.backgroundColor = .yellow
        return self
    }
    func addRedSubView() -> Self {
        let vi = UIView.init()
        vi.frame = CGRect(x: 40, y: 90, width: 90, height: 90)
        vi.backgroundColor = .red
        self.view.addSubview(vi)
        return self
    }
}
